﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XmlStudio.DataLayer;

namespace XmlStudio.Models.Events {
    /// <summary>
    /// Event arguments for RootElementChanged event.
    /// </summary>
    public class RootElementChangedEventArgs : EventArgs {
        /// <summary>
        /// Gets or sets the new root.
        /// </summary>
        /// <value>The new root.</value>
        public BigXmlNode NewRoot { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="RootElementChangedEventArgs"/> class.
        /// </summary>
        /// <param name="newRoot">The new root.</param>
        public RootElementChangedEventArgs(BigXmlNode newRoot) {
            this.NewRoot = newRoot;
        }
    }
}
